package com.kla.power.controller;

import com.kla.power.entity.InverterAcAmountEntity;
import com.kla.power.service.IInverterAcAmountService;
import com.kla.power.util.ResultBody;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 交流电 前端控制器
 * </p>
 *
 * @author WuZH
 * @since 2024-06-10
 */
@RestController
@RequestMapping ( "/acAmount" )
@CrossOrigin(value = "*", maxAge = 3600)
public class InverterAcAmountController {

    @Resource
    private IInverterAcAmountService iInverterAcAmountService;

    @RequestMapping ( "queryList" )
    public ResultBody queryList ( @RequestBody InverterAcAmountEntity inverterAcAmountEntity ) {
        List<InverterAcAmountEntity> inverterAcAmountEntities = iInverterAcAmountService.queryList ( inverterAcAmountEntity );
        return ResultBody.success ( inverterAcAmountEntities );
    }

}
